```
Feature: Basic admin's features
Scenario: Create a user by email/password with valid admin token
When I create a user with a valid admin token
Then I should get status 200
Scenario: Create a user by email/password with invalid admin token
When I create a user with an invalid admin token
Then I should get status 403
```
| Summary Item | Total | Failed |
|---|---|---|
| Requests | 5 | 0 |
| Prerequest Scripts | 7 | 0 |
| Test Scripts | 10 | 0 |
| Assertions | 7 | 7 |
| Skipped Tests | 0 | - |
expected response to have status code 200 but got 503
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
expected response to have status code 200 but got 503
expected response to have status code 200 but got 503
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
expected response to have status code 403 but got 503
Unexpected token '<' at 1:1
<!DOCTYPE html>
^
| Header Name | Header Value |
|---|---|
| Content-Type | application/x-www-form-urlencoded |
| Pragma | no-cache |
| Accept | application/json, text/plain, */* |
| Host | varnish |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | 57ca3045-6f06-4cc5-b090-e7f12381cfee |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 211 |
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"admin@whoozer.fr","password":"wh00zerp0w3r","scope":"mobile_app admin_scopes"}
| Header Name | Header Value |
|---|---|
| Date | Thu, 25 Mar 2021 15:36:24 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 281 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 1201</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Connect endpoint should return 200 when login with valid admin | 0 | 1 | 0 |
| Connect endpoint should return access_token and refresh_token | 0 | 1 | 0 |
| Total | 0 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Connect endpoint should return 200 when login with valid admin | |
| Connect endpoint should return access_token and refresh_token | |
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json, text/plain, */* |
| Authorization | OAuth="" |
| Accept-Encoding | br, gzip, deflate |
| Host | api-preprod.happn.com |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | 13c4c85d-35e6-4410-a9fa-a840f931175d |
| Connection | keep-alive |
| Content-Length | 179 |
{
"type": "CLIENT",
"gender": "female",
"login": "main.user_1616686584689@example.com",
"first_name": "fake",
"last_name": "user",
"password": "00000000"
}
| Header Name | Header Value |
|---|---|
| Date | Thu, 25 Mar 2021 15:36:24 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 281 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 1203</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Admin user can create a new user | 0 | 1 | 0 |
| Total | 0 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Admin user can create a new user | |
| Header Name | Header Value |
|---|---|
| Content-Type | application/x-www-form-urlencoded |
| Pragma | no-cache |
| Accept | application/json, text/plain, */* |
| Host | varnish |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | 9e67ffaf-92f4-48a5-b44c-8a39490c2b72 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 211 |
{"grant_type":"password","client_id":"sDDOEtsfJmfydw6Uos3F_YewFNoDzrxdsKN96OQK9e","client_secret":"HqP-3AgvmsFPOGFT9hsBx0F6a5xLc5NTQ5hxIz3Jfj","username":"main.user_1616686584689@example.com","password":"00000000","scope":"mobile_app"}
| Header Name | Header Value |
|---|---|
| Date | Thu, 25 Mar 2021 15:36:24 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 281 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 1205</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Connect endpoint should return 200 when login with created user | 0 | 1 | 0 |
| Connect endpoint should return access_token and refresh_token for a user | 0 | 1 | 0 |
| Total | 0 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Connect endpoint should return 200 when login with created user | |
| Connect endpoint should return access_token and refresh_token for a user | |
| Header Name | Header Value |
|---|---|
| Host | varnish |
| CF-IPCountry | FR |
| Cookie | |
| Authorization | OAuth="" |
| User-Agent | PostmanRuntime/7.26.8 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 4731a1fc-f47e-4a4a-a790-5fe958e28506 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Date | Thu, 25 Mar 2021 15:36:25 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 281 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 1207</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json, text/plain, */* |
| Authorization | OAuth="invalidToken" |
| Accept-Encoding | br, gzip, deflate |
| Host | api-preprod.happn.com |
| User-Agent | PostmanRuntime/7.26.8 |
| Cache-Control | no-cache |
| Postman-Token | 6458d19a-0d1e-4005-b4c5-2d5f1ffaea07 |
| Connection | keep-alive |
| Content-Length | 179 |
{
"type": "CLIENT",
"gender": "female",
"login": "main.user_1616686585887@example.com",
"first_name": "fake",
"last_name": "user",
"password": "00000000"
}
| Header Name | Header Value |
|---|---|
| Date | Thu, 25 Mar 2021 15:36:25 GMT |
| Content-Type | text/html; charset=utf-8 |
| Retry-After | 5 |
| Age | 0 |
| Cache-Control | max-age=0, no-cache, no-store, must-revalidate |
| Content-Length | 281 |
| Connection | keep-alive |
<!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 1209</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| User creation returns 403 when using invalid admin token | 0 | 1 | 0 |
| Error code should be invalid_token | 0 | 1 | 0 |
| Total | 0 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| User creation returns 403 when using invalid admin token | |
| Error code should be invalid_token | |